import echarts from '@/plugins/echarts'

export const dateTypeList = reactive([
  {
    label: '日',
    value: 'daterange'
  },
  {
    label: '周',
    value: 'week'
  },
  {
    label: '月',
    value: 'month'
  },
  {
    label: '季',
    value: 'quarter'
  },
  {
    label: '年',
    value: 'year'
  }
])

export const cardUrlMap = {
  subject: '/bidManageAdmin/bidding/subjectManage',
  performance: '/bidManageAdmin/performance',
  approval: {
    开户审批: '/bidManageAdmin/approval/accountApproval',
    标段审批: '/bidManageAdmin/bidding/subjectManage',
    充值审批: '/bidManageAdmin/approval/rechargeApproval',
    退款审批: '/bidManageAdmin/approval/refundApproval'
  },
  account: '/bidManageAdmin/financial/accountManageAdmin'
}

export const dataStyleMap = {
  触达人数: {
    color: new echarts.graphic.RadialGradient(0.5, 0.5, 1, [
      { offset: 0, color: '#7dd3fc' },
      { offset: 1, color: '#0ea5e9' }
    ])
  },
  查看人数: {
    color: new echarts.graphic.RadialGradient(0.5, 0.5, 1, [
      { offset: 0, color: '#6ee7b7' },
      { offset: 1, color: '#10b981' }
    ])
  },
  报名人数: {
    color: new echarts.graphic.RadialGradient(0.5, 0.5, 1, [
      { offset: 0, color: '#fcd34d' },
      { offset: 1, color: '#f59e0b' }
    ])
  },
  竞价人数: {
    color: new echarts.graphic.RadialGradient(0.5, 0.5, 1, [
      { offset: 0, color: '#f9a8d4' },
      { offset: 1, color: '#ec4899' }
    ])
  },
  中标人数: {
    color: new echarts.graphic.RadialGradient(0.5, 0.5, 1, [
      { offset: 0, color: '#ddd6fe' },
      { offset: 1, color: '#8b5cf6' }
    ])
  }
}
